﻿<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Home_model extends CI_Model {
		
	public function __constructor()
	{  
	    parent::Model();  
	}
	
	function home_about()
	{	
		$query =  $this->db->get('home_about');
		$this->row_count = $query->num_rows();
		if($query->num_rows() > 0)
		{
			foreach($query->result() as $row)
			{
				$data[] = $row;
			}
		return $data;
		}
	}

	function list_partenaires()
	{	
		$query =  $this->db->get('home_partenaires');
		$this->row_count = $query->num_rows();
		if($query->num_rows() > 0)
		{
			foreach($query->result() as $row)
			{
				$data[] = $row;
			}
		return $data;
		}
	}

	function list_produits()
	{	
		$query =  $this->db->get('home_produits');
		$this->row_count = $query->num_rows();
		if($query->num_rows() > 0)
		{
			foreach($query->result() as $row)
			{
				$data[] = $row;
			}
		return $data;
		}
	}
	

}
?>